<!DOCTYPE HTML>
<html>
	<head>
		<style type="text/css">
			.clearfix-self:before,
			.clearfix-self:after {
			    display: table;
			    content: " ";
			}
			.clearfix-self:after {
				clear: both;
			}
			.pd-0 {
				padding: 0;
			}
			.text-right {
				text-align: right;
			}
			.text-black {
				color: #eee;
			}
			.text-red {
				color: red;
			}
			.report {
				color: #000;
				font-size: 12px;
			}
			.report .fl {
				float: left;
			}
			.report .fr {
				float: right;
			}
			.report .font-size-14 {
				font-size: 14px;
			}
			.report .header > div {
				width: 50%;
				text-align: center;
			}
			.report .header {
				padding: 10px 0;
			}
			.report .cont {
				padding: 10px 20px 40px 10px;
				border-top: 1px solid #eee;
				border-bottom: 1px solid #eee;

			}
			.report .cont .base {
				/*text-indent: 2em;*/
				padding-left: 15px;
			}
			.report .cont .base .fl {
				width: 33%;
			}
			/*.report .cont .label {
				margin-top: 20px;
			}
			.report .cont .label h4 {
				display: inline-block;
				background: #cfe4e7;
				padding: 6px 10px;
				border-radius: 5px;
				margin: 0;
			}
			.report .cont .label p {
				text-indent: 2.5em;
				font-size: 14px;
			}
			.report .cont .label table {
				width: 100%;
				margin-top: 20px;
				background: #f5f5f5;
				border: 1px solid #eee;
				border-right: 0;
			}
			.report .cont .label table th,
			.report .cont .label table td {
				padding: 8px 5px;
				text-align: center;
			}
			.report .cont .label table th {
				border-right: 1px solid #eee;
			}
			.report .cont .label table td {
				border-top: 1px solid #eee;
				border-right: 1px solid #eee;
			}*/
			.report .btn-group {
				text-align: center;
				margin: 20px 0;
			}
			.report .btn-group .btn {
				padding: 8px 15px;
				border: 0;
				cursor: pointer;
				outline: none;
			}
			.report .btn-green {
				background: #0fba96;
				color: #fff;
			}
			.report .btn-green:hover,
			.report .btn-green:active {
				background: #0fa585;
			}
			.report .btn-grey {
				background: #f5f5f5;
				color: #0fba96;
				margin-left: 20px;
			}
			.report .btn-grey:hover,
			.report .btn-grey:active {
				background: #e0dddd;
			}
			.report .remark {
				padding: 10px 20px 40px;
			}
			.report .remark h4 {
				color: #3c763d;
			}
			.panel-self {
				border: 1px solid #d6e9c6;
				border-right: 0;
				margin-top: 15px;
			}
			.panel-self .panel-self-header,
			.panel-self .panel-self-body,
			.panel-self .panel-self-footer {
		        border-right: 1px solid #d6e9c6;
		        padding: 10px 15px;
			}
			.panel-self .panel-self-body {
				/*padding: 0 15px;*/
			}
			.panel-self .panel-self-header {
				color: #3c763d;
			    background-color: #dff0d8;
			}
			.panel-self .panel-self-footer {
				background-color: #f5f5f5;
			}
			.panel-self .panel-self-body {

			}
			.panel-self .panel-self-body p {
				margin: 0;
				padding: 5px 10px;
				text-align: center;
			}
			.panel-self table {
				width: 100%;
			    table-layout: fixed;
			}
			.panel-self table th,
			.panel-self table td {
				padding: 8px;
				border-right: 1px solid #d6e9c6;
				border-bottom: 1px solid #d6e9c6;
				text-align: center;
				word-wrap: break-word;
			}
		</style>
	</head>
	<body>
		<div class="report">
			<div class="clearfix-self header font-size-14">
				<div class="fl">
					魔杖2.0-申请准入报告
				</div>
				<div class="fr">
					报告唯一标示符: {$postDate['trans_id']}
				</div>
			</div>
			<div class="cont">
				<div class="clearfix-self base">
					<div class="fl">用户姓名：<span class="text-black-light">{$postDate['person_info']['name']}</span></div>
					<div class="fl">手机号码：<span class="text-black-light">{$postDate['person_info']['mobile']}</span></div>
					<div class="fl">身份证号：<span class="text-black-light">{$postDate['person_info']['idcard']}</span></div>
				</div>
				
				<div class="panel-self">
					<div class="panel-self-header">黑名单信息：</div>
					<table cellspacing=0 cellpadding="0">
						<tr>
							<th>手机和姓名是否在黑名单</th>
							<th>手机和姓名黑名单更新时间</th>
							<th>身份证和姓名是否在黑名单</th>
							<th>身份证和姓名黑名单更新时间</th>
							<th>被标记的黑名单分类</th>
							<th>逾期次数</th>
							<th>最大逾期金额</th>
							<th>最大逾期天数</th>
							
						</tr>
						<tr>
							<td>{$postDate['black_info_detail']['mobile_name_in_blacklist']}</td>
							<td>{$postDate['black_info_detail']['mobile_name_blacklist_updated_time']}</td>
							<td>{$postDate['black_info_detail']['idcard_name_in_blacklist']}</td>
							<td>{$postDate['black_info_detail']['idcard_name_blacklist_updated_time']}</td>
							<td>{$postDate['black_info_detail']['black_types']}</td>
							<td>{$postDate['black_info_detail']['blacklist_record']['overdue_count']}</td>
							<td>{$postDate['black_info_detail']['blacklist_record']['overdue_amount']}</td>
							<td>{$postDate['black_info_detail']['blacklist_record']['overdue_status']}</td>
							
							
						</tr>
					</table>
				</div>
				<div class="panel-self">
					<div class="panel-self-header">灰名单信息：</div>
					<table cellspacing=0 cellpadding="0">
						<tr>
							<th>手机和姓名是否在灰名单</th>
							<th>手机和姓名灰名单更新时间</th>
							<th>身份证和姓名是否在灰名单</th>
							<th>身份证和姓名灰名单更新时间</th>
							<th>被标记的灰名单分类</th>
							<th>逾期次数</th>
							<th>最大逾期金额</th>
							<th>最大逾期天数</th>
							
						</tr>
						<tr>
							<td>{$postDate['gray_info_detail']['mobile_name_in_gray']}</td>
							<td>{$postDate['gray_info_detail']['mobile_name_gray_updated_time']}</td>
							<td>{$postDate['gray_info_detail']['idcard_name_in_gray']}</td>
							<td>{$postDate['gray_info_detail']['idcard_name_gray_updated_time']}</td>
							
							<td>{$postDate['gray_info_detail']['gray_types']}</td>
							<td>{$postDate['gray_info_detail']['graylist_record']['overdue_count']}</td>
							<td>{$postDate['gray_info_detail']['graylist_record']['overdue_amount']}</td>
							<td>{$postDate['gray_info_detail']['graylist_record']['overdue_status']}</td>
							
							
						</tr>
					</table>
				</div>
				<div class="panel-self">
					<div class="panel-self-header">多头信息：</div>
					<table cellspacing=0 cellpadding="0">
						<tr>
							<th>注册机构数量</th>
							<th>注册机构类型</th>
							<th>第三方渠道注册机构数量</th>
							<th>机构查询次数</th>
							<!--<th>机构类型</th>
							<th>近15天贷款申请次数</th>
							<th>近1个月贷款申请次数</th>
							<th>近3个月贷款申请次数</th>
							<th>近6个月贷款申请次数</th>
							<th>查询日期</th>
							<th>机构类型</th>
							<th>是否本机构查询</th>-->
							<th>汇总借贷机构数（去重）</th>
							<th>明细借贷结构数（去重）</th>
							<th>借贷次数</th>
							<th>近15天贷款的机构数</th>
							<th>近30天贷款的机构数</th>
							<th>近90天贷款的机构数</th>
							<th>近180天贷款的机构数</th>
							<th>近15天贷款的次数</th>
							<th>近30天贷款的次数</th>
							<th>近90天贷款的次数</th>
							<th>近180天贷款的次数</th>
						</tr>
						<tr>
							<!--申请多头-->
							<td>{$postDate['auth_queried_detail']['register_info']['org_count']}</td>
							<td>{$postDate['auth_queried_detail']['register_info']['org_types']}</td>
							<td>{$postDate['auth_queried_detail']['register_info']['other_count']}</td>
							<!--申请次数-->
							<td>{$postDate['auth_queried_detail']['queried_detail_org_count']}</td>
							<!--多平台借贷分析-->
							<!--<td>{$postDate['auth_queried_detail']['queried_analyze']['org_type']}</td>
							<td>{$postDate['auth_queried_detail']['queried_analyze']['loan_cnt_15d']}</td>
							<td>{$postDate['auth_queried_detail']['queried_analyze']['loan_cnt_30d']}</td>
							<td>{$postDate['auth_queried_detail']['queried_analyze']['loan_cnt_90d']}</td>
							<td>{$postDate['auth_queried_detail']['queried_analyze']['loan_cnt_180d']}</td>-->
							<!--机构查询历史-->
							<!--<td>{$postDate['auth_queried_detail']['queried_infos']['date']}</td>
							<td>{$postDate['auth_queried_detail']['queried_infos']['org_type']}</td>
							<td>{$postDate['auth_queried_detail']['queried_infos']['is_self']}</td>-->
							<!--汇总借贷机构数-->
							<td>{$postDate['auth_queried_detail']['loan_org_cnt_all']}</td>
							<!--借贷多头-->
							<td>{$postDate['auth_queried_detail']['loan_info']['loan_org_cnt']}</td>
							<td>{$postDate['auth_queried_detail']['loan_info']['loan_cnt']}</td>
							<td>{$postDate['auth_queried_detail']['loan_info']['loan_org_cnt_15d']}</td>
							<td>{$postDate['auth_queried_detail']['loan_info']['loan_org_cnt_30d']}</td>
							<td>{$postDate['auth_queried_detail']['loan_info']['loan_org_cnt_90d']}</td>
							<td>{$postDate['auth_queried_detail']['loan_info']['loan_org_cnt_180d']}</td>
							<td>{$postDate['auth_queried_detail']['loan_info']['loan_cnt_15d']}</td>
							<td>{$postDate['auth_queried_detail']['loan_info']['loan_cnt_30d']}</td>
							<td>{$postDate['auth_queried_detail']['loan_info']['loan_cnt_90d']}</td>
							<td>{$postDate['auth_queried_detail']['loan_info']['loan_cnt_180d']}</td>
							
						</tr>
					</table>
				</div>
				<div class="panel-self">
					<div class="panel-self-header">朋友圈：联系人</div>
					<table cellspacing=0 cellpadding="0">
						<tr>
							<th>直接联系人个数</th>
							<th>授权过的直接联系人个数</th>
							<th>授权过的直接联系人个数占比</th>
							<th>命中黑名单的直接联系人个数</th>
							<th>命中黑名单的直接联系人个数占比</th>
							<!--<th>直接联系人命中黑名单的类型</th>-->
							<th>授权过的间接联系人个数</th>
							<th>授权过的间接联系人个数占比</th>
							<th>命中黑名单的间接联系人个数</th>
							<th>命中黑名单的间接联系人个数占比</th>
							<th>'引起间接联系人在黑名单的直接联系人数</th>
							<th>'引起间接联系人在黑名单的直接联系人数占比</th>
							<th>'引起间接联系人授权的直接联系人数</th>
							<th>'引起间接联系人授权的直接联系人数占比</th>
							
						</tr>
						<tr>
							<td>{$postDate['mobile_info']['mobile_contact_30d']['contactnum']}</td>
							<td>{$postDate['mobile_info']['mobile_contact_30d']['auth_contactnum']}</td>
							<td>{$postDate['mobile_info']['mobile_contact_30d']['auth_contact_ratio']}</td>
							<td>{$postDate['mobile_info']['mobile_contact_30d']['black_contactnum']}</td>
							<td>{$postDate['mobile_info']['mobile_contact_30d']['black_contactnum_ratio']}</td>
							<!--<td>{$postDate['mobile_info']['mobile_contact_30d']['contact_type']}</td>-->
							<td>{$postDate['mobile_info']['mobile_contact_30d']['auth_indirectnum']}</td>
							
							<td>{$postDate['mobile_info']['mobile_contact_30d']['auth_indirectnum_ratio']}</td>
							<td>{$postDate['mobile_info']['mobile_contact_30d']['black_indirectnum']}</td>
							<td>{$postDate['mobile_info']['mobile_contact_30d']['black_indirectnum_ratio']}</td>
							<td>{$postDate['mobile_info']['mobile_contact_30d']['black_indirect_peernum']}</td>
							<td>{$postDate['mobile_info']['mobile_contact_30d']['black_indirect_peernum_ratio']}</td>
							<td>{$postDate['mobile_info']['mobile_contact_30d']['auth_indirect_peernum']}</td>
							<td>{$postDate['mobile_info']['mobile_contact_30d']['auth_indirect_peernum_ratio']}</td>
							
							
						</tr>
					</table>
				</div>
				<div class="panel-self">
					<div class="panel-self-header">朋友圈：亲密联系人</div>
					<table cellspacing=0 cellpadding="0">
						<tr>
							<th>直接联系人个数</th>
							<th>授权过的直接联系人个数</th>
							<th>授权过的直接联系人个数占比</th>
							<th>命中黑名单的直接联系人个数</th>
							<th>命中黑名单的直接联系人个数占比</th>
							<!--<th>直接联系人命中黑名单的类型</th>-->
							<th>授权过的间接联系人个数</th>
							<th>授权过的间接联系人个数占比</th>
							<th>命中黑名单的间接联系人个数</th>
							<th>命中黑名单的间接联系人个数占比</th>
							<th>'引起间接联系人在黑名单的直接联系人数</th>
							<th>'引起间接联系人在黑名单的直接联系人数占比</th>
							<th>'引起间接联系人授权的直接联系人数</th>
							<th>'引起间接联系人授权的直接联系人数占比</th>
							
						</tr>
						<tr>



							<td>{$postDate['mobile_info']['intimate_contact_info_30d']['intimatenum']}</td>
							<td>{$postDate['mobile_info']['intimate_contact_info_30d']['auth_intimatenum']}</td>
							<td>{$postDate['mobile_info']['intimate_contact_info_30d']['auth_intimatenum_ratio']}</td>
							<td>{$postDate['mobile_info']['intimate_contact_info_30d']['black_intimatenum']}</td>
							<td>{$postDate['mobile_info']['intimate_contact_info_30d']['black_intimatenum_ratio']}</td>
							<!--<td>{$postDate['mobile_info']['mobile_contact_30d']['contact_type']}</td>-->
							<td>{$postDate['mobile_info']['intimate_contact_info_30d']['auth_intimate_indirectnum']}</td>
							<td>{$postDate['mobile_info']['intimate_contact_info_30d']['auth_intimate_indirectnum_ratio']}</td>
							<td>{$postDate['mobile_info']['intimate_contact_info_30d']['black_intimate_indirectnum']}</td>
							
							<td>{$postDate['mobile_info']['intimate_contact_info_30d']['black_intimate_indirectnum_ratio']}</td>
							<td>{$postDate['mobile_info']['intimate_contact_info_30d']['black_intimate_indirect_peernum']}</td>
							<td>{$postDate['mobile_info']['intimate_contact_info_30d']['black_intimate_indirect_peernum_ratio']}</td>
							<td>{$postDate['mobile_info']['intimate_contact_info_30d']['auth_intimate_indirect_peernum']}</td>
							<td>{$postDate['mobile_info']['intimate_contact_info_30d']['auth_intimate_indirect_peernum_ratio']}</td>
							
							
						</tr>
					</table>
				</div>
				<div class="panel-self">
					<div class="panel-self-header">信用卡：</div>
					<table cellspacing=0 cellpadding="0">
						<tr>
							<th>信用卡开户银行数</th>
							<th>卡片数目</th>
							<th>总信用额</th>
							<th>有过逾期的卡片数</th>
							<th>近3个月逾期账单数</th>
							<th>近3个月逾期月数</th>
							<th>最近一次逾期时间</th>
							<th>最大逾期金额</th>
							<th>单卡最大连续逾期账单数</th>			
						</tr>
						<tr>
							<td>{$postDate['credit_card']['bank_nums']}</td>
							<td>{$postDate['credit_card']['card_amount']}</td>
							<td>{$postDate['credit_card']['total_credit_limit']}</td>
							<td>{$postDate['credit_card']['overdue_card']}</td>
							<td>{$postDate['credit_card']['credit_overdue_item_3m']['overdue_times']}</td>
							<td>{$postDate['credit_card']['credit_overdue_item_3m']['overdue_months']}</td>
							
							<td>{$postDate['credit_card']['loan_info']}</td>
							<td>{$postDate['credit_card']['max_overdue_money']}</td>
							<td>{$postDate['credit_card']['continue_overdue_times']}</td>
							
						</tr>
					</table>
				</div>
				
				
				<div class="panel-self">
					<div class="panel-self-header">设备APP：</div>
					<table cellspacing=0 cellpadding="0">
						<tr>
							<th>设备指纹排序</th>	
							<th>设备指纹对应的借贷APP数量</th>
							<th>设备指纹对应的消费分期APP数量</th>
							<th>设备指纹对应的彩票APP数量</th>
							<th>设备指纹对应的借贷APP数量占比</th>
							<th>设备指纹对应的消费分期APP数量占比</th>
							<th>设备指纹对应的彩票APP数量占比</th>		
								
						</tr>
				<?php	foreach ($postDate['risk_device'] as $key => $v) { ?>
						<tr>
							<td>{$key}</td>
							<td>{$v['loan_cnt']}</td>
							<td>{$v['consumption_cnt']}</td>
							<td>{$v['lottery_cnt']}</td>
							<td>{$v['loan_cnt_ratio']}</td>
							<td>{$v['consumption_cnt_ratio']}</td>
							<td>{$v['lottery_cnt_ratio']}</td>
							
							
						</tr>
							<?php } ?>	
					</table>
				</div>
			
			</div>
		</div>
	</body>
</html>